package local.blueheart.data.springdatademo.domain.config;

import local.blueheart.data.springdatademo.domain.system.AbstractDomainClass;
import lombok.Data;
import lombok.ToString;

import javax.persistence.*;

@Entity
@Data
@ToString
public class ApplicationDO  extends AbstractDomainClass {

    private String name;

    private String appField;

    private String flagField;

    private String contentFilePath;

    private String indexPath;

    private String address;

    private String userName;

    private String passWord;

    @ManyToOne(cascade = {CascadeType.MERGE,CascadeType.REFRESH},optional = false)
    @JoinColumn(name = "archivesource_id")
    private ArchiveSourceDO archiveSourceDO;

    @OneToOne(cascade = {CascadeType.MERGE,CascadeType.REFRESH})
    @JoinColumn(name = "module_id")
    private ModuleDO moduleDO;


}
